
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<script type="text/javascript" src="${ctx }/resources/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="${ctx }/resources/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="${ctx }/resources/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="${ctx }/resources/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx }/resources/js/H-ui.js"></script>
<script type="text/javascript" src="${ctx }/resources/js/H-ui.admin.js"></script>

<script type="text/javascript">

  function delItems(url) {
    var ids = [];
    $("input[name=ids]:checked").each(function () {
      ids.push($(this).val());
    });
    if (ids.length == 0) {
      alert("请选择要删除的列表item");
      return;
    }
    $.ajax(
            {
              type: "post",
              url: url + "/" + ids,
              success: function (data) {
                if (data == 'success') {
                  alert("删除成功");
                  window.location.reload();
                  $("input[name=ids]").each(function () {
                    $(this).removeAttr("checked");
                  });
                }
              }
            }
    );
  }
</script>